package cn.dliyy.warehouse.bean;

import java.util.Map;

import javax.validation.Valid;

import org.springframework.stereotype.Component;

import cn.dliyy.base.bean.KeyValue;
import cn.dliyy.staff.bean.UStaff;

@Component
// @Entity
public class SStorage {
  @Valid
  private WItems items;
  @Valid
  private BGoods goods;
  private BCategory category;
  private UStaff handler;// 经办人
  private UStaff operator;// 录入人 操作人
  private BWarehouse warehouse;
  private BDealer dealer;// 经销商
  private BBrand brand;
  private BUnit unit;
  private KeyValue reason;
  private Map<String, String> reasonMap;

  public BGoods getGoods() {
    return goods;
  }

  public void setGoods(BGoods goods) {
    this.goods = goods;
  }

  public BUnit getUnit() {
    return unit;
  }

  public void setUnit(BUnit unit) {
    this.unit = unit;
  }

  public BCategory getCategory() {
    return category;
  }

  public void setCategory(BCategory category) {
    this.category = category;
  }

  public UStaff getHandler() {
    return handler;
  }

  public void setHandler(UStaff handler) {
    this.handler = handler;
  }

  public UStaff getOperator() {
    return operator;
  }

  public void setOperator(UStaff operator) {
    this.operator = operator;
  }

  public BWarehouse getWarehouse() {
    return warehouse;
  }

  public void setWarehouse(BWarehouse warehouse) {
    this.warehouse = warehouse;
  }

  public BDealer getDealer() {
    return dealer;
  }

  public void setDealer(BDealer dealer) {
    this.dealer = dealer;
  }

  public BBrand getBrand() {
    return brand;
  }

  public void setBrand(BBrand brand) {
    this.brand = brand;
  }

  public KeyValue getReason() {
    return reason;
  }

  public void setReason(KeyValue reason) {
    this.reason = reason;
  }

  public Map<String, String> getReasonMap() {
    return reasonMap;
  }

  public void setReasonMap(Map<String, String> reasonMap) {
    this.reasonMap = reasonMap;
  }

  public WItems getItems() {
    return items;
  }

  public void setItems(WItems items) {
    this.items = items;
  }

}
